package string;
//返回当前字符串指定位置上的字符
import java.util.Scanner;

public class CharAtDemo {
    public static void main(String[] args) {
        String str="thinking in java";
        char c=str.charAt(9);
        System.out.println(c);



        /*
        String stc="0123456789abcdefgopqrstuvwxyz";
        Scanner scanner=new Scanner(System.in);
        int a= scanner.nextInt();
        char b=stc.charAt(a);
        System.out.println(b);

         */

    }
}
